Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correctly generate network if path has spaces #357

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

giovanni-guidini
Copy link
Contributor

Parsing of output of the ls-files commands was splitting paths with spaces. It is literally the difference show below.

>>> s = 'string space\nother line\n'
>>> s.split()
['string', 'space', 'other', 'line']
>>> s.split('\n')
['string space', 'other line', '']

closes: #356

Parsing of output of the `ls-files` commands was splitting paths with spaces.
It is literally the difference show below.

```python
>>> s = 'string space\nother line\n'
>>> s.split()
['string', 'space', 'other', 'line']
>>> s.split('\n')
['string space', 'other line', '']
```
closes: #356
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b46d37e) 95.52% compared to head (e7e3c04) 95.52%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #357   +/-   ##
=======================================
  Coverage   95.52%   95.52%           
=======================================
  Files          80       80           
  Lines        2746     2746           
=======================================
  Hits         2623     2623           
  Misses        123      123           
Flag Coverage Δ
python3.10 95.76% <ø> (ø)
python3.11 95.76% <ø> (ø)
python3.8 95.76% <ø> (ø)
python3.9 95.76% <ø> (ø)
smart-labels 95.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@giovanni-guidini giovanni-guidini merged commit ad1249c into main Jan 25, 2024
18 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/fix-network-path-with-spaces branch January 25, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI seems to fail when it encounters a space in the Path
2 participants